package com.smh.a04SetDemo1;

import java.util.HashSet;

public class HashSetDemo2 {
    public static void main(String[] args) {

        Student student = new Student("asd",12,"nan");
        Student student2 = new Student("qwe",12,"nan");
        Student student3 = new Student("zxc",12,"nv");
        Student student4= new Student("fgh",12,"nan");

        HashSet<Student> hashSet = new HashSet<>();
        hashSet.add(student);
        hashSet.add(student2);
        hashSet.add(student3);
        hashSet.add(student4);
        System.out.println(hashSet);


    }
}
